package com.metagurukul.metaspace.models.beans;


import java.sql.Timestamp;

/**
 * @author ritesh
 * created date : 5/10/2012
 */
public class Status {
	private int statusId = -1;
	private String status = null;
	private Timestamp statusTimestamp = null;
	private int userId = -1;
	
	/**
	 * @return
	 */
	public int getStatusId() {
		return statusId;
	}
	
	/**
	 * @param statusId
	 */
	public void setStatusId(int statusId) {
		this.statusId = statusId;
	}
	
	/**
	 * @return
	 */
	public String getStatus() {
		return status;
	}
	
	/**
	 * @param status
	 */
	public void setStatus(String status) {
		if(this.status != null && 400 < this.status.length()){
			throw new StringIndexOutOfBoundsException("status size too long");
		}
		this.status = status;
	}
	
	/**
	 * @return
	 */
	public Timestamp getStatusTimestamp() {
		return statusTimestamp;
	}
	
	/**
	 * @param status_timestamp
	 */
	public void setStatusTimestamp(Timestamp statusTimestamp) {
		this.statusTimestamp = statusTimestamp;
	}
	
	/**
	 * @return
	 */
	public int getUserId() {
		return userId;
	}
	
	/**
	 * @param userId
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}
	
}

